Constant Freezing for minutes with “Searching Folder...” in status bar, busy spinner, and "(Not Responding)" in title bar for unified folder. Workaround unselect the checkbox "Search Online" in unified folder properties. (imap)
Categories
(MailNews Core :: Backend, defect)
Tracking
(thunderbird_esr115 affected)
Tracking | Status | |
---|---|---|
thunderbird_esr115 | --- | affected |
People
(Reporter: old.square.eyes, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: perf, Whiteboard: [needs profile performance for 128][has 115 performance profile])
Attachments
(1 file)
116.24 KB,
image/png
|
Details |
Comment 2•10 years ago
|
||
Comment 4•10 years ago
|
||
Comment 6•10 years ago
|
||
Comment 10•10 years ago
|
||
Reporter | ||
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
Comment 14•10 years ago
|
||
Reporter | ||
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Comment 17•10 years ago
|
||
Comment 18•10 years ago
|
||
Reporter | ||
Comment 19•10 years ago
|
||
Comment 20•10 years ago
|
||
Reporter | ||
Comment 21•10 years ago
|
||
Reporter | ||
Comment 22•10 years ago
|
||
Reporter | ||
Comment 23•10 years ago
|
||
Comment 24•10 years ago
•
|
||
Reporter | ||
Comment 25•10 years ago
|
||
Comment 26•10 years ago
|
||
Comment 27•10 years ago
|
||
Reporter | ||
Comment 29•10 years ago
|
||
Comment 30•10 years ago
|
||
Reporter | ||
Comment 31•10 years ago
|
||
Reporter | ||
Comment 32•10 years ago
|
||
Reporter | ||
Comment 33•10 years ago
|
||
workaround |
Comment 34•10 years ago
|
||
Comment 35•9 years ago
|
||
Reporter | ||
Comment 36•9 years ago
|
||
Comment 37•9 years ago
|
||
Comment 38•9 years ago
|
||
Comment 39•9 years ago
|
||
Comment 40•9 years ago
|
||
Comment 41•9 years ago
|
||
Comment 42•9 years ago
|
||
Comment 43•8 years ago
|
||
workaround |
Updated•5 years ago
|
Comment 44•5 years ago
|
||
I also have a very similar issue and also have a gmail account which I store email in, read, but not deleted. I see exactly the same thing. I get a spinner for several minutes, and it happens constantly.
Following Michael Fisher's recommendation, I disabled the Global Search and Indexer and then stop Thunderbird, remove the global-messages-db.sqlite file from the profile directory, restart Thunderbird, and the problem is now gone.
Thunderbird constantly reads it to refresh something in memory and it can take minutes. What seems to be happening is when this sqlite file gets large, reading it or whatever it's doing, just blocks things for minutes at a time. Perhaps there is a smarter way to use this file to significantly speed things up?
On my system, before I deleted it, it was upwards of 1gb and Thunderbird would freeze for 4-5 minutes, more or less, every few minutes. It definitely froze just after restart, but after about a minute, when I clicked the Unified inbox.
Comment 45•5 years ago
|
||
As a comment, this solution of disabling the Global Search and Indexer is also detailed on this page: http://kb.mozillazine.org/Minimize_the_size_of_a_profile
Comment 46•5 years ago
|
||
(In reply to Michael Grant from comment #45)
As a comment, this solution of disabling the Global Search and Indexer is also detailed on this page: http://kb.mozillazine.org/Minimize_the_size_of_a_profile
I'm wondering how many messages are in your various Inboxes and other folders for all your accounts? I've been researching this for probably duplicate bug 1611887.
Comment 47•5 years ago
|
||
For me, on the order of 60K messages in gmail and 20K messages in other mailboxes. 3 different imap accounts in total.
It seems like the this it's doing some long query that's causing the freeze.
Comment 48•5 years ago
|
||
For me the global search only caused somewhat annoying background tb activity with tb running 50-100% cpu until everything is re-indexed. The main problem I am looking at is worked-around by disabling the unified folder's "search online". Did you try only disabling the "search online" and leaving global search enabled? If you could try that it would be appreciated but I understand you probably don't want to do that.
What I'm seeing is that when the gmail inbox with lots of messages is searched (as indicated on status line) that the UI hangs, e.g., you can't scroll messages. The time of the hang/lock-up is proportional to the number of message in the Inbox or whichever unified box has lots of messages.
Anyhow, thanks for the info.
Comment 50•4 years ago
|
||
From bug 1611887 gene cites https://searchfox.org/comm-central/rev/25df033ac98c8cb346a8e0c338d1e7647ca23bfb/mailnews/base/src/nsMsgXFVirtualFolderDBView.cpp#238
Can someone create a performance profile of this in action? See https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance
Comment 51•4 years ago
|
||
Sure; this is taken with Thunderbird setup on two accounts. One account has 200k messages in the inbox and the second has 400. I enabled Online Search in the unified folder settings and started the performance profile recording while viewing the sent folder. I then selected the unified inbox. The inbox view showed and was responsive for a short time (<1 second) then the lock up and eventual recovery.
Performance profile is https://share.firefox.dev/3hliFUl
Comment 52•4 years ago
|
||
(In reply to Brian Haskin (Janzert) - via bug Bug 1611887 - from comment #51)
Sure; this is taken with Thunderbird setup on two accounts. One account has 200k messages in the inbox and the second has 400. I enabled Online Search in the unified folder settings and started the performance profile recording while viewing the sent folder. I then selected the unified inbox. The inbox view showed and was responsive for a short time (<1 second) then the lock up and eventual recovery.
Performance profile is https://share.firefox.dev/3hliFUl
For some reason this is not very revealing.
Do you also see the performance issue when started in safe mode? Start Windows' safe mode with networking enabled
- win10 https://support.microsoft.com/en-us/help/12376/windows-10-start-your-pc-in-safe-mode
Still In Windows safe mode, start thunderbird in safe mode - https://support.mozilla.org/kb/safe-mode-thunderbird
Does problem go away?
Comment 53•4 years ago
|
||
It's still there with both windows and thunderbird in safe mode. If anything it's even worse freezing for ~125 seconds. Note though that I did have to switch from wifi to a USB 10/100 Ethernet adapter in order to get networking working with windows safe mode.
Updated•4 years ago
|
Comment 54•4 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #52)
(In reply to Brian Haskin (Janzert) - via bug Bug 1611887 - from comment #51)
Sure; this is taken with Thunderbird setup on two accounts. One account has 200k messages in the inbox and the second has 400. I enabled Online Search in the unified folder settings and started the performance profile recording while viewing the sent folder. I then selected the unified inbox. The inbox view showed and was responsive for a short time (<1 second) then the lock up and eventual recovery.
Performance profile is https://share.firefox.dev/3hliFUl
For some reason this is not very revealing. [92 seconds of jank with nothing on the stack]
Brian, using a newer version of Thunderbird, please capture another profile. Thanks.
Comment 55•4 years ago
|
||
(In reply to Michael Grant from comment #47)
For me, on the order of 60K messages in gmail and 20K messages in other mailboxes. 3 different imap accounts in total.
It seems like the this it's doing some long query that's causing the freeze.
Thanks Michael. Please create a profile using https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance and post the URL of the uploaded profile.
Comment 56•4 years ago
|
||
Yep, here you go https://share.firefox.dev/3ueQRHl
Doesn't appear to be particularly more informative than the last one though. The freeze does seem to be consistently sub-90 seconds now. Not sure if that's due to changes in Thunderbird or the account though.
Comment 57•4 years ago
|
||
Ack, sorry for the spam. Accidentally cleared an extra needinfo flag.
Comment 58•4 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #55)
(In reply to Michael Grant from comment #47)
For me, on the order of 60K messages in gmail and 20K messages in other mailboxes. 3 different imap accounts in total.
It seems like the this it's doing some long query that's causing the freeze.
Thanks Michael. Please create a profile using https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance and post the URL of the uploaded profile.
Here you go: https://share.firefox.dev/3sgHN2y
What I did to do this was access the Unified inbox foler. I clicked back to one of the individual folders which took several minutes and then clicked on the Unified inbox which then took several minutes more. The buffer said it over-wrapped.
I see from my settings that I am storing mail in mbox format. I'm going to try and delete everthing and reload my mail with the maildir setting.
Let me know if I can do anything else to move this forward!
Comment 59•4 years ago
|
||
Wow. I've been having this painful issue for 2.5 years on two machines (32GB Macbook Pros). I've searched online for a solution several times during this time and even I've started to seriously consider giving up on Thunderbird after 12 years of using it...
Finally, I've found this thread today. Simply unchecking "Search Online" solves the problem. I don't even understand why I need "Search Online", but it does look like it's not worth having it on. Why is it even enabled by default?
I'm amazed that this issue is 7 years old (and the related issue 534520 is 9 years old) and it still hasn't been solved. Unfortunately, I'm sure there are many power users who stopped using Thunderbird because of this issue.
Last but not least, many thanks for your work and for the workaround.
Comment 60•4 years ago
|
||
I'm having the same issue. Thankfully, the workaround Mark found does work (disabling the "Search online" option for the Unified Mail view/folder/search).
I did also find another workaround: Add a "filter" to the Unified Mail view/folder/search, which is narrow enough that your result set remains small.
For example, you can set it to: "Status", "Isn't", "Read". This limits the result set to <100 for me, which makes it load quickly.
I like this workaround better than the "Disable search online" one myself, since this way has a bit less background processing. (doesn't re-query the accounts to check for new messages; that doesn't seem necessary, since Thunderbird already detects when new messages come in, and I've confirmed they then show up in the Unified view)
Side-note: If you do use the "Disable search online" workaround, it can mess with the unread-count for the Unified view. I've found that you can fix that by adding some kind of filter to that view/folder/search -- any filter will do, it seems.
Comment 61•4 years ago
|
||
I'm using TB 78.13.0 (32-bit)
This fixed it:
Tools / Options / General / Disk Space - Clear Now
I used Unified folders.
I have left Global Search enabled.
I will just put it in my calendar software to do this "Clear Now" on the first of every month (thanks!).
A while back, I determined to just clear out everything in TB once per month - any e-mail I know I need, I save it, so, everything else can go.
IMO, e-mail programs are not really good for leaving things in, that you want to find later. I determined to leave this to the Windows File Explorer.
Comment 62•4 years ago
|
||
(In reply to mb1285 from comment #61)
Wait, now it's doing it again! . . . Well, the Clear Now button is still good to do
It looks like this is what I want:
Tools / Options / General / Indexing / [un-check] Enable Global Search and Indexer
Comment 63•3 years ago
|
||
(In reply to Michael Grant from comment #58)
(In reply to Wayne Mery (:wsmwk) from comment #55)
(In reply to Michael Grant from comment #47)
For me, on the order of 60K messages in gmail and 20K messages in other mailboxes. 3 different imap accounts in total.
It seems like the this it's doing some long query that's causing the freeze.
Thanks Michael. Please create a profile using https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance and post the URL of the uploaded profile.
Here you go: https://share.firefox.dev/3sgHN2y
70% of activity is at "associateView"
Call stack is:
associateView
_applyViewChanges
_enterFolder
open
show
FolderPaneSelectionChange
onselect
EventHandlerNonNull
MozTreeChildren/<
EventListener.handleEvent
Comment 64•3 years ago
|
||
(In reply to Brian Haskin (Janzert) from comment #56)
Yep, here you go https://share.firefox.dev/3ueQRHl
Doesn't appear to be particularly more informative than the last one though. The freeze does seem to be consistently sub-90 seconds now. Not sure if that's due to changes in Thunderbird or the account though.
About the same as Michael's - 65% associateView resource:///modules/SearchSpec.jsm
Updated•2 years ago
|
Comment 65•1 year ago
|
||
Does this still happen in newer versions?
If it does, a new profile will be helpful https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance
Comment 66•1 year ago
|
||
Brian, Michael,
Do you still see this issue?
Comment 67•1 year ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #65)
Does this still happen in newer versions?
If it does, a new profile will be helpful https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance
I am still using Thunderbird (to answer your question in the fwd email). To avoid the freezing issue, I still am using (both of) the workarounds I listed in my last comment: right-clicking the unified-mail "Inbox" entry at the very top of the list on the left, and having "Search Online" disabled, as well as having a filter/search-criteria enabled of "Match any of the following" for "Status -> isn't -> Read".
That said, since I've had those settings enabled for years to avoid the issue, I don't know if the bug still occurs in the latest versions.
So I have tried resetting both of those settings to their defaults (Search Online enabled, and no filters/search-criteria). On doing so, I did have to wait a good ~2 minutes for the app to become responsive again. But maybe that is a one-time thing since I've had it disabled for so long.
So now I will leave it like this for a while and see if the freezing problem occurs going forward.
Comment 68•1 year ago
|
||
Okay, the freezing issue happens just a couple minutes after posting my comment above.
- The freeze lasts for ~70 seconds.
- What triggers the freeze: When I navigate (ie. click) from showing a specific email's inbox, to the unified "Inbox" entry in the left-panel's list of inboxes.
Here is a permalink to the Firefox profile I took: https://share.firefox.dev/4bczyve
- I started the profile just before clicking the unified "Inbox" entry. (the freezing occurs something like 3 seconds afterward; in the small period beforehand, I can sometimes still click on an email or two, though I didn't in this case)
- I stopped the profile a couple seconds after the window became responsive again.
Comment 69•1 year ago
|
||
Looks like someone else has already confirmed this and I don't have ready access to an account that shows the issue at the moment.
Updated•9 months ago
|
Comment 70•9 months ago
|
||
(In reply to Stephen Wicklund from comment #68)
Okay, the freezing issue happens just a couple minutes after posting my comment above.
- The freeze lasts for ~70 seconds.
- What triggers the freeze: When I navigate (ie. click) from showing a specific email's inbox, to the unified "Inbox" entry in the left-panel's list of inboxes.
Here is a permalink to the Firefox profile I took: https://share.firefox.dev/4bczyve
Thanks for the profile on Windows 10. There is constant activity in the progressSlideX and nsImapMailFolder::NotifySearchHit
Stephen, does this also happen in version 128? Can you do a full profile? It looks like it didn't record all the activity.
Comment 71•9 months ago
|
||
(In reply to Brian Haskin (Janzert) from comment #69)
Looks like someone else has already confirmed this and I don't have ready access to an account that shows the issue at the moment.
If that should change and you can reproduce on version 128 then a new profile would be useful - your earlier profile was largely empty of useful information for some reason.
Updated•7 months ago
|
Comment 72•6 months ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #70)
Stephen, does this also happen in version 128? Can you do a full profile? It looks like it didn't record all the activity.
Even better if you can test 128.5.2 next week.
Also, to what extent if any does disabling status bar help? (in View > Toolbars)
(In reply to Stephen Wicklund from comment #60)
I'm having the same issue. Thankfully, the workaround Mark found does work (disabling the "Search online" option for the Unified Mail view/folder/search).
I did also find another workaround: Add a "filter" to the Unified Mail view/folder/search, which is narrow enough that your result set remains small.
For example, you can set it to: "Status", "Isn't", "Read". This limits the result set to <100 for me, which makes it load quickly.
I like this workaround better than the "Disable search online" one myself, since this way has a bit less background processing. (doesn't re-query the accounts to check for new messages; that doesn't seem necessary, since Thunderbird already detects when new messages come in, and I've confirmed they then show up in the Unified view)
Comment 73•6 months ago
|
||
(In reply to Stephen Wicklund from comment #68)
Okay, the freezing issue happens just a couple minutes after posting my comment above.
- The freeze lasts for ~70 seconds.
- What triggers the freeze: When I navigate (ie. click) from showing a specific email's inbox, to the unified "Inbox" entry in the left-panel's list of inboxes.
Thanks Stephen. Are you using version 128, or using beta?
Does the problem change if you do View > Toolbars > untick Status Bar ?
Comment 74•6 months ago
|
||
Also, all, please post after using 128.5.2, available later this week hopefully.
Comment 75•5 months ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #72)
(In reply to Wayne Mery (:wsmwk) from comment #70)
Stephen, does this also happen in version 128? Can you do a full profile? It looks like it didn't record all the activity.
Even better if you can test 128.5.2 next week.
Also, to what extent if any does disabling status bar help? (in View > Toolbars)
(In reply to Stephen Wicklund from comment #60)
I'm having the same issue. Thankfully, the workaround Mark found does work (disabling the "Search online" option for the Unified Mail view/folder/search).
I did also find another workaround: Add a "filter" to the Unified Mail view/folder/search, which is narrow enough that your result set remains small.
For example, you can set it to: "Status", "Isn't", "Read". This limits the result set to <100 for me, which makes it load quickly.
I like this workaround better than the "Disable search online" one myself, since this way has a bit less background processing. (doesn't re-query the accounts to check for new messages; that doesn't seem necessary, since Thunderbird already detects when new messages come in, and I've confirmed they then show up in the Unified view)
I updated to 128.5.2, and tried replicating the freezing issue. I was not able to replicate it, on either my desktop or my laptop. (despite reverting the two "fixes" that I mentioned above for avoiding the freezing)
So for me at least, the bug seems to have been fixed. (I mean, there is still a delay of ~2 seconds on clicking the Unified Inbox, but that seems within the normal range, and is drastically better than freezing for over a minute)
Is anyone else still seeing this issue on the latest version? (128.5.2)
Comment 76•5 months ago
•
|
||
TLDR; 128.5.2 is a vast improvement here.
A couple of months ago I did get a bit of time to start looking into this. To help with that, and for anyone else that wants to look into large inbox behavior in the future, I did set up a docker image with imap inboxes of various sizes. You can find that at https://hub.docker.com/r/janzert/mailbox-size-test
Some local times (w/ profile linked) to open the unified inbox, one account with 1k messages and one...
with 300k messages:
- 128.4.0: ~37 minutes
- 128.5.2: <52 seconds
- 128.5.2 online search disabled: <40 seconds
with 100k messages:
- 128.4.0: ~2m40s
- 128.5.2: <6 seconds
- 128.5.2 online search disabled: ~5 seconds
A quick perusal of the profiles looks like most if not all the improvement comes from nsMsgSearchSession::AddSearchHit and its underlying use of the mork db improving.
Comment 77•5 months ago
|
||
Does anyone who hasn't commented recently still experience problems?
Comment 78•2 months ago
|
||
Resolved per whiteboard
Description
•